fixed trimming elements from maxTrackingPositions