fix for bug when upperbound is None
example code for talkparse.py