[SparkVFDControl] fix unbound variable and some code cosmetics