fix view generator