Fix crash on start