Small bug fix in $view->render()