Fix bug in single file download