Fixed bug when notifying subscribers, causing crashes