fixed upload problem