solved an error in the view