fixed drawing in 3d