Fixed the null notification bug.