fix ResultSet to array