This is a known bug. Creatures going into weapon/shield slots, or creatures becoming permanents were also known bugs.
I'd like to see someone who glitched Miracle into a permanent. If it's free to cast, you are virtually invincible, unless your opponent can deal 100+ damage in one turn.