small modified. change cmagic.js.