fix npe when trying to add notification