fixed getPreviousPositionsWithinMilliSecond