Fixing dist() params.