Israel never actually abandoned the God of Abraham, Isaac, and Jacob. Their problem was not replacing Yahweh with other Canaanite gods. Their problem was setting other gods beside him. Yahweh remained their national deity, the one on whom they called when it came to war and threats from enemies.