Fix assert failure in VolcanoPlanner.changeTraits.