Fix crash when receiving notifications
Merge pull request #3 from maximebrun/master

Fix crash when receiving notifications