fixed a bug with archive uploaded when using the --archive option