fix placeholders in the template