Fix crash upload.