Fix resultset