fixed bug in eventShape.py