RIR shared parameters not shared

answered here Changing the current document (looping through multiple) - #9 by Japhy