Fixes small error with magnitude set and get.