fix rules getter