Fixes for file downloads.