fix weird bug in tester.py occurring when no data is available