fixing failed to parse template problem