Fix issue of removing notifications from the same thread.