fixed broken notification check