Fix bug on copyFolder