fixing problem not getting the templates