fix SparkContext start state check