bugfix for run.py