Fix error in the view