Fixing some bugs for Pin associations: