3d - fix code