fix upload problem