Fix delete operation.