Fix bug with detail page file download