Fix editor crash.