Bug fix in a2d