Fix occasional keyerror when uploading.