but when the soviets changed the darya 's course and diverted the river 's flow into a twelve-hundred-kilometer-long canal-water used to grow cotton for soviet mills-the inland sea , once one of the world 's largest freshwater bodies , began to vanish , replaced by a desert incapable of supporting life .