fixed nullpointer in notification