Fix NPE.