fix view rendering