Multiple refs bug