Fix view class syntax