Fix bugs in in-gens-relative.