fix a NPE