fixed problem with spark-scope