fixed bug in AHPS graph