Fixes a crash on startup.