Fixing view errors