fixed logic for splash