bug fix on sketch_set