Fixing notify observers bug stemming from mutable set enumeration