diff --git a/bob/db/cuhk_cufsf/models.py b/bob/db/cuhk_cufsf/models.py
index 46fe8d4d1c48350317c5ccd9f9c63025b52a8c5e..85596659e1834f5f8b2f585bc91ca56a592f226e 100644
--- a/bob/db/cuhk_cufsf/models.py
+++ b/bob/db/cuhk_cufsf/models.py
@@ -129,7 +129,7 @@ class File(Base, bob.db.base.File):
 
   modality_choices = ('photo', 'sketch')
 
-  id        = Column(String(100), primary_key=True, autoincrement=True)
+  id        = Column(String(100), primary_key=True)
   path      = Column(String(100), unique=True)
   client_id = Column(Integer, ForeignKey('client.id'))
   modality  = Column(Enum(*modality_choices))
diff --git a/bob/db/cuhk_cufsf/utils.py b/bob/db/cuhk_cufsf/utils.py
index e88560f44bfd7cd89a187a647f0bddf9761b2baf..fc6f52040821ba0b55bf8c34f66177cfba6984e9 100644
--- a/bob/db/cuhk_cufsf/utils.py
+++ b/bob/db/cuhk_cufsf/utils.py
@@ -88,7 +88,7 @@ class FERETWrapper():
     clients  = range(1,1195)
     world = 700
     dev   = 494
-    numpy.random.shuffle(clients)
+    numpy.random.shuffle(list(clients))
     
     return clients[0:world], clients[world:world+dev] 
 
@@ -109,7 +109,7 @@ class FERETWrapper():
     world  = 350
     dev    = 350
     test   = 494
-    numpy.random.shuffle(clients)
+    numpy.random.shuffle(list(clients))
     
     return clients[0:world], clients[world:world+dev], clients[world+dev:world+dev+test]