fix concurrentmodificationexception bug