fix query limit