fix pesky errors related to bad column selection and Undefined Columns