fixed ResultSet plotting bug