Fix integer division bug in download progress