Fixed another bug in api.py