Fixed bug in rc-api magnetic where data stored in wrong variable.