bug fix

bug fix in spell identification