fix rules type