Fixed bug in notification sending