Modify the rule when the tree reach maximum size to avoid it to go above the limit in some cases