Fix view type setting