fix upload bug.