fixed a view problems