fix an issue with checking total bytes downloaded so far