patch ResultSet bug