Fix the templates plugin