fix bug where refresh undos shuffle