Removed bug to allow file downloads