fix id lookup