fixing bug with loading levels when there is no class