diff --git a/src/core/qtlibtorrent/qtorrenthandle.cpp b/src/core/qtlibtorrent/qtorrenthandle.cpp
index 79c923e..7bfebbe 100644
--- a/src/core/qtlibtorrent/qtorrenthandle.cpp
+++ b/src/core/qtlibtorrent/qtorrenthandle.cpp
@@ -276,9 +276,9 @@ size_type QTorrentHandle::filesize_at(unsigned int index) const
 QString QTorrentHandle::filepath_at(unsigned int index) const
 {
 #if LIBTORRENT_VERSION_NUM < 10000
-    return filepath_at(torrent_handle::get_torrent_info(), index);
+    return fsutils::fromNativePath(misc::toQStringU(torrent_handle::get_torrent_info().files().file_path(index)));
 #else
-    return filepath_at(*torrent_handle::torrent_file(), index);
+    return fsutils::fromNativePath(misc::toQStringU(torrent_handle::torrent_file()->files().file_path(index)));
 #endif
 }
 
@@ -632,12 +632,12 @@ void QTorrentHandle::file_priority(int index, int priority) const
 void QTorrentHandle::prioritize_files(const vector<int> &files) const
 {
 #if LIBTORRENT_VERSION_NUM < 10000
-    torrent_info const& info = torrent_handle::get_torrent_info();
+    if ((int)files.size() != torrent_handle::get_torrent_info().num_files())
 #else
-    boost::intrusive_ptr<torrent_info const> info_ptr = torrent_handle::torrent_file();
-    torrent_info const& info = *info_ptr;
+    if ((int)files.size() != torrent_handle::torrent_file()->num_files())
 #endif
-    if ((int)files.size() != info.num_files()) return;
+        return;
+
     qDebug() << Q_FUNC_INFO;
     bool was_seed = is_seed();
     qDebug() << Q_FUNC_INFO << "Changing files priorities...";
@@ -647,7 +647,7 @@ void QTorrentHandle::prioritize_files(const vector<int> &files) const
     QString spath = save_path();
 
     for (uint i = 0; i < files.size(); ++i) {
-        QString filepath = filepath_at(info, i);
+        QString filepath = filepath_at(i);
         // Move unwanted files to a .unwanted subfolder
         if (files[i] == 0) {
             QString old_abspath = QDir(spath).absoluteFilePath(filepath);
@@ -803,12 +803,6 @@ float QTorrentHandle::progress(const libtorrent::torrent_status &status)
     return progress;
 }
 
-QString QTorrentHandle::filepath_at(const libtorrent::torrent_info &info, unsigned int index)
-{
-    return fsutils::fromNativePath(misc::toQStringU(info.files().file_path(index)));
-
-}
-
 bool QTorrentHandle::is_forced(const libtorrent::torrent_status &status)
 {
     return !status.paused && !status.auto_managed;
diff --git a/src/core/qtlibtorrent/qtorrenthandle.h b/src/core/qtlibtorrent/qtorrenthandle.h
index 51ebee4..f66fec1 100644
--- a/src/core/qtlibtorrent/qtorrenthandle.h
+++ b/src/core/qtlibtorrent/qtorrenthandle.h
@@ -159,7 +159,6 @@ public:
     static bool is_checking(const libtorrent::torrent_status &status);
     static bool has_error(const libtorrent::torrent_status &status);
     static float progress(const libtorrent::torrent_status &status);
-    static QString filepath_at(const libtorrent::torrent_info &info, unsigned int index);
     static bool is_forced(const libtorrent::torrent_status &status);
 
 private:
