Fixed bugs in views.