Fix index controller