fix indexing block for rules