fix(main) sendResponse: query always undefined