fixed the annoying thing in templates