fixed the crash issue.