fix for undefined column