fix coordinates when segment option used