Triple check everything is plugged in.
check that you have tightened up all the pipes after the maf.
Also check you reconnected the rubber pipe thats underneath the big plastic one.
but in my mind its definitely something that's not plugged in properly, check by hand not by sight