Fix to undo list selections if done button wasn't tapped.