Fix case when query is multiline.