fix infoviewmodel without iwindow