Fixed the "class" error. Not able to tell if class were active or not.