fixed NullpointerExc.