Error in class string in template