fixed a issue in delete-event