fixed error happening with templates not extending