fix displaying splash screen on init