Fixed crash on startup