Fix NPE on startup.