Well if you egr system isnt working how it should that could be the issue. Egr's arent designed to be working at idle or wot. So if you unhook the vacuum line and it affects it, then you have already figured your problem out. If the egr valve is open during idle, it will cause a misfire issue.