diff --git a/modules/commons/commons_follow/commons_follow_ui/commons_follow_ui.module b/modules/commons/commons_follow/commons_follow_ui/commons_follow_ui.module
index 18c46c5..0c67a1c 100644
--- a/modules/commons/commons_follow/commons_follow_ui/commons_follow_ui.module
+++ b/modules/commons/commons_follow/commons_follow_ui/commons_follow_ui.module
@@ -121,6 +121,23 @@ function commons_follow_ui_tab_title($account, $flag_name = NULL) {
   $flag = flag_get_flag($flag_name);
   $flaggings = flag_get_user_flags($flag->content_type, NULL, $account->uid);
 
+  if (!empty($flaggings[$flag_name])) {
+    foreach ($flaggings[$flag_name] as $key => $flag_content) {
+      if ($entity = entity_load($flag_content->content_type, array($flag_content->content_id))) {
+        $access_func  = $flag_content->content_type . '_access';
+        if ((isset($entity[$flag_content->content_id]->status) && $entity[$flag_content->content_id]->status == 0) ||
+          (($flag_content->content_type != 'user') &&
+            (function_exists($access_func) && $access_func('view', $entity[$flag_content->content_id], $account) == FALSE))) {
+          unset($flaggings[$flag_name][$key]);
+        }
+      }
+      else {
+        //not a valid entity
+        unset($flaggings[$flag_name][$key]);
+      }
+    }
+  }
+
   $count = !empty($flaggings[$flag_name]) ? count($flaggings[$flag_name]) : 0;
   $params = array(
     '@flag' => $flag->get_title(),
