fix resultset