fix removal of unopened notifications

fixes #192