Fix crash on first launch

and remove debug