fix query request