fixing 2d view rendering.