Fixed bug with splash screen