God was operating in the way He had to during the times in the Old Testament.
What God did throughtout the Old Testament wasn't His true and complete nature, neither was it whom He has revealed Himself to be in the New Testament.
But still people have the impression that God is a God of wrath who would wipe out anyone who gets in His way.