fixed the Classescontroller and classesindex error