fixing rule validation