there is a bug in make_max_path