Fix crash on notifications