Fix id ref