fix bug where rules id does not match