fixing the logic which decides cluster inActive