Fix QUERY protocol command.