main spell error fix