diff --git a/db/rep_indexes.sql b/db/rep_indexes.sql
index 513fb4a682a841408bc9d041a17613a2df600c38..9db674df8e28129f2bd6dc227cbadb7db2f8869a 100644
--- a/db/rep_indexes.sql
+++ b/db/rep_indexes.sql
@@ -16,7 +16,7 @@ BEGIN
           (body_binary::jsonb -> 'value' ->> 'permlink'),
           id desc
       )
-      WHERE hive.operation_id_to_type_id(id) in (17, 61)
+      WHERE hafd.operation_id_to_type_id(id) in (17, 61)
       $idx$
   );
 
@@ -30,7 +30,7 @@ BEGIN
           (body_binary::jsonb -> 'value' ->> 'permlink'),
           id desc 
       )
-      WHERE hive.operation_id_to_type_id(id) = 72
+      WHERE hafd.operation_id_to_type_id(id) = 72
       $idx$
   );
 
diff --git a/haf b/haf
index 2bcd0f8938dc574fd63a482ac7242499adf985c1..7f9f79c35c8bafe29aeaab134a0e5802857d9a7b 160000
--- a/haf
+++ b/haf
@@ -1 +1 @@
-Subproject commit 2bcd0f8938dc574fd63a482ac7242499adf985c1
+Subproject commit 7f9f79c35c8bafe29aeaab134a0e5802857d9a7b