Fix npe.