Refreshing commit dialog might reset index to an old state