fix the none judgement issue.

fix the none judgement issue.