fix startup NPE