fix view creation