Fix concurrent modification.