Fix a NPE.