Fix type of downloaddetails (#10)