fix make_indices script