fix bug: was toggling all the hidden cards on undo