bug fix in view.