avoid NulRefException