fix potential NPE