fixed bug where Globals->classes should be repopulated