Fixed editor delete bug