fixed a bug where a view model or root class was not specified