diff --git a/bcloud/CloudPage.py b/bcloud/CloudPage.py
index <HASH>..<HASH> 100644
--- a/bcloud/CloudPage.py
+++ b/bcloud/CloudPage.py
@@ -237,6 +237,7 @@ class CloudPage(Gtk.Box):
     def add_local_bt_task(self):
         '''从本地上传种子到服务器, 再创建离线下载任务'''
         self.check_first()
+        print('Local BT task not supported right now.')
 
     # Open API
     def add_link_task(self):
@@ -268,7 +269,7 @@ class CloudPage(Gtk.Box):
         if response != Gtk.ResponseType.OK or not len(source_url):
             return
 
-        if source_url.startswith('magent'):
+        if source_url.startswith('magnet'):
             self.add_cloud_bt_task(source_url)
             return
 
diff --git a/bcloud/VCodeDialog.py b/bcloud/VCodeDialog.py
index <HASH>..<HASH> 100644
--- a/bcloud/VCodeDialog.py
+++ b/bcloud/VCodeDialog.py
@@ -3,6 +3,7 @@
 # Use of this source code is governed by GPLv3 license that can be found
 # in http://www.gnu.org/licenses/gpl-3.0.html
 
+import os
 
 from gi.repository import Gtk
Show file chooser dialog when downloading magnet files