fixed an exception caused when KNotify is not installed