Fix wrong computation of download stats