fix bugs of spelling check