correcting resultSet cursor