Fixed concurrent modification of listeners array error