Fixing bug in optimized feed river.