fix local path when enter error