bugfix in api.py