fix the upload error page issue