Fixed little prob in get_magnitudes when calling _magnitude_origin