SPARK-4276 fix for two working thread