fixed bug where the last column of the 3d plot was showing the first column