bugfix in graphics.py