Fix the crash issue.