Fix index refreshing into separate call so diff-files is always run