I changed my air filters today and cleaned the MAF sensor with MAF cleaner. Car is now running rough sometimes and

I have CEL P0410. Do not know if this has anything to do with this but when I took the MAF sensor of it was on there really good. When putting it back on it seemed a little loose . Thanks