fix bug with delete item