fix rule type display and chooseleaf_tries command