Important bugfix in CalculateClearanceAtNode