Fix NPE on load.