fixed loadedLevels bug