Fixed npe.