Set segment limits to correct max values