Rivers created. Border cases should be observed.
Rivers fixed