Fixes Spark.sleep() issue that was introduced while fixing #269