Gate loading screen logic fix