problem with templates was fixed