fix local_path bug