Fix index command