imsm: fix num_domains