bug while deleting