diff --git a/R/kafino.R b/R/kafino.R
index fbca3b4aa4f228c10ebb7956a3c47e251537d220..8a0adcc1bc49f23c8d026df5e6c8db854ada1b65 100644
--- a/R/kafino.R
+++ b/R/kafino.R
@@ -510,7 +510,7 @@ kafino_fit<-function(datain,Tvar,Yvar,
   # useful for the kafino_plot() function
   #--------------------------------
   if (is.null(resultat)){
-    dt.out<-datain
+    dt.out<-datain %>% mutate(flag=.data$flag1)
     dt.pred<-NULL
     resultat<-NULL    
     
diff --git a/README.md b/README.md
index 3a97204b53c62bff15143d7ee278961efecb5255..f94cce7996b481cef2c0ed822515da3219455568 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+[![pipeline status](https://forgemia.inra.fr/isabelle.sanchez/kafino/badges/main/pipeline.svg)](https://forgemia.inra.fr/isabelle.sanchez/kafino/-/commits/main) 
+
 # kafino
 
 Kalman Filter for Impulse Noised Outliers
@@ -16,7 +18,8 @@ To install the kafino package, the easiest is to install it directly from GitLab
 if (!require("remotes")) {
   install.packages("remotes")
 }
-remotes::install_gitlab("isabelle.sanchez/kafino",host = "forgemia.inra.fr")
+remotes::install_gitlab("isabelle.sanchez/kafino",host = "forgemia.inra.fr",
+                        build_vignettes=TRUE)
 ```
                         
 ## Usage