fixed bug in min_n_disk