Bug fix to CompositeState.process and OrthogonalState.process