fix possible npe