[ERROR FIXED]: 'numSegments' missing