Fix problem with turning off splash screen