MAP-964: fix rule checking