corrected clearing which transition container gets cleared up