God changes his mind?

Hi there. Can someone help me with this? It says in Amos 7:3 and 7:6 that God changed his mind and what Amos saw will not take place. I thought God could not change his mind as he is omnipotent, omniscient and omnipresent?