fix view path bugs