Why do we need to reset index in this dialog?