Fixed bug with broken placeholders in template