fix ConcurrentMethodModification bug