fix a bug lose the assigned path from command line.