fix some bug for browsing file and download files