fix Concurrent modification (point 1 in #4)
workaround issue 95 in js-interop to make unsubscription work (point 2 in #4)