fixing issue with stride in sao