fixing bug in column reference