Fix path rules generation and indexation