fixed some syntactical errors in templates