fix the crash issue;