Problem with graphics in 3D