fix view bug