fix: fix off-by-one in ATG statuses handling