minor fix to ghost.py