Fix figure index.