added fix for pnotify