view class: bug fix.