fix sendNotification