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