fix bug upload