Fixed bug with view.