fixed a bug where the app got stuck on splash screen