clone viewModel before passing to update function.