Minor bug fix in view update method