You may want to fix the IMRC but it's not causing the rattle.
Partially blocked EGR and cylinder carbon buildup are usually the culprits. A lean mixture will make it worse, as will bad or wrong plugs. If it's really inconsistant make sure the plug wires are not leaking and crossfiring.