Fix for notification observer removal.