Notification flag jankily working