fix upload failed issue