commit with index fix