Fix pixel access in sao