Changed the context of the pin reference in the pin iterator