fixed REST api job status bug