Fixed a view bug