diff --git a/src/cutecoin/gui/community_tab.py b/src/cutecoin/gui/community_tab.py
index f723bdda5a8f700ae97a35d696aaaae5fd0ee3eb..61fd2b562889d3f799919ecb22b5d90ed45aa1c8 100644
--- a/src/cutecoin/gui/community_tab.py
+++ b/src/cutecoin/gui/community_tab.py
@@ -55,14 +55,14 @@ class CommunityTabWidget(QWidget, Ui_CommunityTabWidget):
     def member_context_menu(self, point):
         index = self.table_community_members.indexAt(point)
         model = self.table_community_members.model()
-        if index.row() < model.rowCount() and index.column() < model.columnCount() - 2:
+        if index.row() < model.rowCount():
             source_index = model.mapToSource(index)
             pubkey_col = model.sourceModel().columns.index('Pubkey')
             pubkey_index = model.sourceModel().index(source_index.row(),
                                                    pubkey_col)
             pubkey = model.sourceModel().data(pubkey_index, Qt.DisplayRole)
             member = Person.lookup(pubkey, self.community)
-            menu = QMenu(model.data(index, Qt.DisplayRole), self)
+            menu = QMenu(self)
 
             add_contact = QAction("Add as contact", self)
             add_contact.triggered.connect(self.add_member_as_contact)
diff --git a/src/cutecoin/gui/currency_tab.py b/src/cutecoin/gui/currency_tab.py
index 17c842d77cc73cadad3fccfff7c6785654c5a91b..6baaf058a89877e9e7d3a7b39feb7a69ae950a58 100644
--- a/src/cutecoin/gui/currency_tab.py
+++ b/src/cutecoin/gui/currency_tab.py
@@ -239,12 +239,12 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget):
         if index.row() < model.rowCount(QModelIndex()):
             menu = QMenu("Actions", self)
             source_index = model.mapToSource(index)
-            state_col = model.sourceModel().columns.index('State')
+            state_col = model.sourceModel().column_types.index('state')
             state_index = model.sourceModel().index(source_index.row(),
                                                    state_col)
             state_data = model.sourceModel().data(state_index, Qt.DisplayRole)
 
-            pubkey_col = model.sourceModel().columns.index('UID/Public key')
+            pubkey_col = model.sourceModel().column_types.index('uid')
             person_index = model.sourceModel().index(source_index.row(),
                                                     pubkey_col)
             person = model.sourceModel().data(person_index, Qt.DisplayRole)