                                 namespace_name: namespace.get('name')
                             issue_redundancy = new IssueRedundancy issue_redundancy_param
                             issues_redundancy.push issue_redundancy
-                        else if directory_by_namespaces[namespace_id][machine_id][0] != key
-                            issue_redundancy_param =
-                                machine_id: machine_id
-                                machine_name: machine_name
-                                namespace_uuid: namespace_id
-                                namespace_name: namespace.get('name')
-                            issues_redundancy.push new IssueRedundancy issue_redundancy_param
-                        else if directory_by_namespaces[namespace_id][machine_id][1].type != @convert_activity[value]
-                            issue_redundancy_param =
-                                machine_id: machine_id
-                                machine_name: machine_name
-                                namespace_uuid: namespace_id
-                                namespace_name: namespace.get('name')
-                            issues_redundancy.push new IssueRedundancy issue_redundancy_param
- 
+                        else
+                            found_activity = false
+                            for activity in directory_by_namespaces[namespace_id][machine_id]
+                                if key is activity[0] and @convert_activity[value] is activity[1].type
+                                    found_activity = true
+                            
+                            if found_activity is false
+                                issue_redundancy_param =
+                                    machine_id: machine_id
+                                    machine_name: machine_name
+                                    namespace_uuid: namespace_id
+                                    namespace_name: namespace.get('name')
+                                issues_redundancy.push new IssueRedundancy issue_redundancy_param
+        console.log issues_redundancy 
         if issues_redundancy.length > 0 or issues_redundancy.length isnt @.length
             @.reset(issues_redundancy)
         

        issues_redundancy = []
        @num_replicas = 0


        directory_by_namespaces = DataUtils.get_directory_activities_by_namespaces()
        for namespace in namespaces.models
            namespace_id = namespace.get('id')
            blueprint = namespace.get('blueprint').peers_roles

                for activity_id, activity of activity_map
                    if !(namespace_id of activities)
                        activities[namespace_id] = {}
                    if activities[namespace_id][machine.get('id')]?
                        activities[namespace_id][machine.get('id')].push(activity)
                    else
                        activities[namespace_id][machine.get('id')] = [activity]

        return activities

