Fixed error of deleting first row all rows were deleted