I noticed that my fuel gauge fluctuates and the engine is rough at start. ideas? on 2004 BMW 325Ci

I got the p0171 and p0174 obd codes, this happened after my car ran out of gas. I've cleaned the MAF sensor, replaced the gas cap and the fuel filter. My thought is the heated oxygen sensors are bad.

Asked by for the 2004 BMW 325Ci