Fix crash right way.

I saw your recent activite to fix it. Here is solution :yum: