Minor bug fix in view