fixed error post bug in sfpan.c