fixed 2D version bug that broke 3D versions.