fix assertion error in notification manager