Fix index globals