fix bug redirect after upload document