Fix crash on startup
