Fixed TrajDensity bug.