Fix logic inversion for RI-mode address selection