Fixed bug if "classes" is string
Merge pull request #16 from Zemistr/master

Fixed bug if "classes" is string (sorry :/ )