fixed a bug in trajectory similarity computing