fixed result set issue