Bug.  wrong order for agc