Prevent white screen of death