fix depth buffer problem