Fix upload error