adg: fix bug in tolerance layout