fix folder copy issue