Fixes the file corruption on download