fix forwarding params, sort and count for standard query