Fix a crash issue.