fixing resultset object