Fix crash on startup.