fix syntax error caused by editor crash