prettify and make safe the clear WD option in QuickMagic
fix error in agm_magic update