Actually there seem to be a bigger problem here - the bible
contradicts itself!
Look at:
Deu 24
16 Parents shall not be put to death for their children, nor shall
children be put to death for their parents; only for their own
crimes may persons be put to death.
And here is Exodus 20:5 which you quoted:
5You shall not bow down to them or worship them; for I the Lord
your God am a jealous God, punishing children for the iniquity of
parents, to the third and the fourth generation of those who reject
me,
How leh? 