Fixed upload problem