fixed magicwrap