found bug in notification code