Bug Fix: Corrects error if 'class' in a line outside of declaration