Fix some bugs introduced in latest torrentleech change. fix #2369