Fix loading window on FF