Fixed dispatch.py