$expr not using indices

Thanks! I opened a similar post few days ago, and here the workaround found :