sao: fix inf loop bounds