fix collect constants id lookup