support nil type
bug fix