Fixed error in downloads controller