step set_chooseleaf fix