fix bugs : error index when delete item