An attempt to fix duplicate notifications.