Removed a bug in coping files