Fix exception on startup.