bug fix on view