fixed bug in tree with Join in buildQueryPlan()