Fixed code style in the templates