Fix modify task status bug