Fix error on view boilerplate