fix a bug in acpc alignment