Fix bug in splash screen