Fixed the LevelLoader in headless settings.