Fixed use of wrong variable
First attempt to implement an indexBy projection