If the EGR is sticking open, then tapping on it will smooth out the otherwise rough idle.