Fix ResultSet by adding necessary next method call.