Fix crash issue.