Deuteronomy 24:16 that states that children are not to be put to death for their parent’s sin!
Of course there is no contradiction in the bible when it states in Exodus 20:5 . . .I Jehovah your God am a God....bringing punishment for the error of fathers upon sons, upon the third generation and upon the fourth generation.