fixed view errors