error of deleting a row after searching corrected