Fix saving item instead of deleting it when delete called before save