fix query path