Make sure resultSet is empty right before updating it.