Fixed an upload bug