Fixed a bug with printing ResultSet