fix printTreeForDebugging instead of addition of repairChildMasks