fix all Null warns
first day work
Yige fixes index too large and type