Fixed missing file extension of downloaded files