Fixed an error in sketch.py