fix context concurrent modify issue.