anchor.diff:  				var columns = $('rule-'+(ruleCount + 1)+'-columns');
   				
   				var divNodes = 0;
  +				var sameFields = 0;
  +				var fieldExist = false;
   
   				// Filter all div nodes				
   				for(var i=0; i < columns.childNodes.length; i++)
   				{
   					if (columns.childNodes[i].nodeName == 'DIV')
   					{
  -						divNodes++;
  -					}
  -				}
  -							
  -				var fieldExist = false;
  -				
  -				var sameFields = 0;
  -				
  -				for (var i=0; i < divNodes; i++)
  -				{
  -					var fieldId = 'ruleSet.rule['+ ruleCount + '].condition.column[' + i + '].fieldConstraint[0].fieldName';
  -					var domainObjectId = 'ruleSet.rule['+ ruleCount + '].condition.column[' + i + '].objectType';
  -					
  -					if($(fieldId).value == fieldName && $(domainObjectId).value == domainObjectName)
  -					{
  -						sameFields++;
  +
  +						if (columns.childNodes[i].style.visibility != 'hidden') {							
  +							
  +							var fieldId = 'ruleSet.rule['+ ruleCount + '].condition.column[' + divNodes + '].fieldConstraint[0].fieldName';
  +							var domainObjectId = 'ruleSet.rule['+ ruleCount + '].condition.column[' + divNodes + '].objectType';
  +					
  +							if($(fieldId).value == fieldName && $(domainObjectId).value == domainObjectName)
  +							{
  +								sameFields++;
  +						
  +							}
  +						}
  +					
  +							divNodes++;
  +							
   						
   					}
   				}
  
positive.code: 				<c:forEach varStatus="columnStatus" begin="0"
  					items="${command.ruleSet.rule[ruleCount].condition.column}">
  					<c:set var="columnCount" value="${columnStatus.index}" />
  					<div id="rule-${ruleCount}-column-${columnCount}"
  						style="margin-left:200px;" class="lineitem"><img
  						src="/caaers/images/chrome/spacer.gif"
  						style="width:10px;height:10px" align="absmiddle" /> <c:choose>
  						<c:when test="${columnCount == 0}">
  
negative.code: 		//var domainObject = null;
  		
  		// check whether the field already exists
  		
  		if (isFieldExists(ruleCount, $(domainObjectDropDownID).value, selectedField.value))
  		{
  			alert('Field already exisits');
  