fix Delete bugs