small NPE fix