fixed a view bug