Fixed a problem with the view