Fixed a bug that uses the wrong topology; Change the decimal to 3 due to different
precision in various trajectory formats.