imsm: fix imsm_map.num_domains