Fixed torrent insert and issues with score calculation