fixed bug where loading screen and alert were not timed properly