Made corrections in dispatch.py