Fixed issue where input would be made safe before a template was created on the server