Fix the issue that splash screen is displayed late