Fix depth buffer