fix bug upload twice