another fix for 2d to 3d