Hi all new on this...

So here is my issue and looking for advice: BMW 316ise 2001 1.9 petrol

Started with the EML coming on with code P0170 - bank 1 rich. the car when cold was juddery erratic revs i.e. bouncing from 300-around 1000 rpm, holding back when accelerating, cutting out at junctions when the clutch was pressed, this occurs until the engine is at operating temp and has been for around 10 mins then runs smooth, although on long journeys i have seen the rev counter idle over the 1000-rpm but no longer cuts out when warm.

looked for vacuum leaks and found around 3 perished pipes at the front of the engine above the camshaft sensor which are around 10mm thick, these were all replaced and the EML reset, since then the EML has not came back on however i still have the same issues above just no EML, would this be the MAF???

Advice please... i understand the MAF is a common issue on this model?