fix ConcurrentModificationException bug