Fixed bugs associated with drawing trees with 2 leaves, problems in data
grouping correlation scan