fix error of output path