Fixed loading screen bug causing loading to fail