fix wrong usage of idx_fmt (detected by a compiler warning)