fixed bug in spelling check