${PREFIX} not working properly in Server Templates

I am not sure if this is a problem with our server or something more. I noticed that MySQL databases were being created with the domain administration user name instead of the domain prefix.

The template for MySQL has both the default database and prefix for additional databases using ${PREFIX} and ${PREFIX}_, respectively. I also have a script installer which uses ${PREFIX}_. In each case what Virtualmin does for some reason is return the equivalent of ${USER}.

I have tested both variables for what they return and each returns the domain administrator user name.

Any ideas about how to have the ${PREFIX} variable return the correct value?

Thanks,

Chris