Fix formatting of columns when running queries.