Fix id ref.