fix downloaded_size when finished