fix bugs in abd2d.c