Fix crash and background