fix the issue with using promises for searching torrents