fixing Task reset