Fix upload errors