fix zbuffer problem