Fixed bug in the View class.