fix possible NPE