resolve crash issue

resolve crash issue