ya, dirty MAF sensor can only sense small amount of air, it is OK for gear in P and N,
when gear in D, engine need large amount of AIR, but MAF sensor can only see small air goes into engine. so check your spark plug, it must be very oil.
good luck