bugging, trying to fix the undefined column selected bug