Fixed RI iteration over multiple sets, thanks John
.14