Fixed an issue with file downloads