Fixed column headings bug when downloading as csv with a location in the
last few fields.