Fix broken 3d graphics