fix delete operation