fixed an instantiation in views