Oops, sending the wrong object to replace, it's supposed to be the evo object, not the evoObject indexed by wid.

Fixed.