Fix view errors