Fix copyRef method signature