Update spark.dart

fix an invalid variable reference