Fixed clean_path correctness

hopefully.