fixed atlas editor crash bug.