minor bug fix in the view