Fixes bounding box code in RiverGenerator.js.