Fix add and delete.