fix routing priority on directory index