Seg faulting while generating phrases