Bug fix in View class