fix view error