Fixed resume upload bug