Fix custom index binding