Fixed duplicate directory copy