fixed configuration bugs of bad type and index for rules