fixed a few problems with covertree data processing