fix for 3d graphics