segment correction