Fix index directive.