Fix: ref was not set on object after renamed