Fix delete operation