fixes nil class on templates