Fix bug of upload image error process.