Fixed file downloads
(Issue #1)