Fixed a bug with self.view.