fixed apsp.c