is there a cheat to undo it
Currently, there isn't one, but I could add it with the next update, since it's a small thing. It will be changed with one of the options in the "pile of gold" of the debug room.