Workaround concurrent modification exception.