Map editor crash fix.