fix crash issue.