Fix index types.