Fixed an NPE.