fixing rule selection