resolve NPE