Minor file download code fix