Update the arguments in the calls to magnitude_vector.