Attempt to fix ConcurrentModificationException

Signed-off-by: Andre Schweiger <andre.spiele@yahoo.de>