Fixed the crash bug of spelling issue

Fixed the crash bug of spelling issue