[Bux fixing for maxLeaves]