fix issue when committing while indexing the rules