Fixed getDefinedSketch error