Fixes in downloadable_controller.rb (resource_controller)