Fixed file download issue