The evolution of a decaying spheromak