Fix a view bug