fix rules syntax