fix undefined column selection