fix null issue.