Fix bug on file download for local storage