fixed update following the changes of delete.