small fix to copy script