fix for bounds with older versions of scipy

fix for issue #1738