fix expression width bug in dmagic register. Issue #35