fixed the ConcurrentModificationException in LocalizedXStream