fix an NPE