correct zbuffer