Fix ambiguous ref definition