fix 3d cube