repair the viewmodel