Fixed problems in views