fixed the bug of creating 2D trajectory of 3D datachoice