Fixing file download handler