fix the bug in alnpe.c which let sw get a wrong answer