fixed off-by-one error in frame number comparison in torrent history