Fix index not generating