Bug #0119: Trajectory buffer size calculation corrected.