fix bugs in views
bug fix