fix local variable name in getSketch