Fixed some view errors