Fixed bug with canceled notifications

Notifications were not started and canceled correctly.