fix view rendering error