fix a problem in spell