Fix resetting magnitudes.