Fix extra send complete command for query