fixed ResultSet not opened error