Updating template by escaping underscores