Bug fix to CompositeState.Process and OrthogonalState.Process