Fix TOCRULES handling