Fix problem with splash screen loading