Fix crash when loading notifications