fix bug for location columns with spaces in them