store id_str as key, id is rounded and therefore broken
fix scoping