fix issue where an empty column results in an ugly error message