Fixed an issue copying result file