fixed crash bug caused by custom loading screen support