fix reversed direction of DMAgic transfers. Issue #35.