fix SAI logic