fixed bug where root node looked like a column reference

Change-Id: I47fe41391ef39928aaf49497fbe6bc5d7bcbd14c