fix a bug of NullPoint