fixed bugs with the torrent alert script