Minor modification in get_bounded function.