fix repeat context