diff --git a/package_bgs/dp/AdaptiveMedianBGS.h b/package_bgs/dp/AdaptiveMedianBGS.h
index 3ea25af0ff3bf2c8b2956294015617347b17c672..d199b81896bae228d42d8685566502344ecbeb29 100644
--- a/package_bgs/dp/AdaptiveMedianBGS.h
+++ b/package_bgs/dp/AdaptiveMedianBGS.h
@@ -85,5 +85,5 @@ namespace Algorithms
 
 			RgbImage m_median;
 		};
-	};
-};
+	}
+}
diff --git a/package_bgs/dp/Bgs.h b/package_bgs/dp/Bgs.h
index c1ae23c25b90d1b5795afaef2e3d96f641eaac60..5f91246e0aa87fd2a43e86d58e663998fbb56e7c 100644
--- a/package_bgs/dp/Bgs.h
+++ b/package_bgs/dp/Bgs.h
@@ -61,7 +61,7 @@ namespace Algorithms
 			// Return the current background model.
 			virtual RgbImage *Background() = 0;
 		};
-	};
-};
+	}
+}
 
-#endif
\ No newline at end of file
+#endif
diff --git a/package_bgs/dp/BgsParams.h b/package_bgs/dp/BgsParams.h
index c3bad830f254eb6c6ba45750610abab8283fed2c..a63b1ac3cff432124bd0608c20f586f0e97eefab 100644
--- a/package_bgs/dp/BgsParams.h
+++ b/package_bgs/dp/BgsParams.h
@@ -53,7 +53,7 @@ namespace Algorithms
 			unsigned int m_height;
 			unsigned int m_size;
 		};
-	};
-};
+	}
+}
 
-#endif
\ No newline at end of file
+#endif
diff --git a/package_bgs/dp/Eigenbackground.h b/package_bgs/dp/Eigenbackground.h
index b86ac92a66bfeb6b07c694f1599b61f2bdb9b5cf..721b7356e453be4903f19698de7b2b4b150578e7 100644
--- a/package_bgs/dp/Eigenbackground.h
+++ b/package_bgs/dp/Eigenbackground.h
@@ -95,7 +95,7 @@ namespace Algorithms
 
       RgbImage m_background;
     };
-  };
-};
+  }
+}
 
-#endif
\ No newline at end of file
+#endif
diff --git a/package_bgs/dp/GrimsonGMM.h b/package_bgs/dp/GrimsonGMM.h
index 2d11a286962e37fc4467ec7decda61209f64a4c1..a177a803bbd81f8da79f0b9afbe86ff1cdd276fc 100644
--- a/package_bgs/dp/GrimsonGMM.h
+++ b/package_bgs/dp/GrimsonGMM.h
@@ -144,7 +144,7 @@ namespace Algorithms
 			// Current background model
 			RgbImage m_background;
 		};
-	};
-};
+	}
+}
 
 #endif
diff --git a/package_bgs/dp/MeanBGS.h b/package_bgs/dp/MeanBGS.h
index 881beb70fcdb6796aff3039f8dec8d1282c2bf86..247e09493a6af6bd954d2c6be825f31007fe5c76 100644
--- a/package_bgs/dp/MeanBGS.h
+++ b/package_bgs/dp/MeanBGS.h
@@ -89,8 +89,8 @@ namespace Algorithms
       RgbImage m_background;
     };
 
-  };
-};
+  }
+}
 
 
 
diff --git a/package_bgs/dp/PratiMediodBGS.h b/package_bgs/dp/PratiMediodBGS.h
index 0b373d7c45f49c28b3c7c04cacfd9e222b998bef..bc8cb7fdf94a8eead4b79cdf5403ce4f0d74d8f4 100644
--- a/package_bgs/dp/PratiMediodBGS.h
+++ b/package_bgs/dp/PratiMediodBGS.h
@@ -130,8 +130,8 @@ namespace Algorithms
       BwImage m_mask_high_threshold;
     };
 
-  };
-};
+  }
+}
 
 #endif
 
diff --git a/package_bgs/dp/WrenGA.h b/package_bgs/dp/WrenGA.h
index d623e20557fc795dc04ea45478e6030094b16008..116c292a9adfc6f9c80313865d5b501daec8e269 100644
--- a/package_bgs/dp/WrenGA.h
+++ b/package_bgs/dp/WrenGA.h
@@ -108,8 +108,8 @@ namespace Algorithms
 
       RgbImage m_background;
     };
-  };
-};
+  }
+}
 
 #endif
 
diff --git a/package_bgs/dp/ZivkovicAGMM.h b/package_bgs/dp/ZivkovicAGMM.h
index c58fac424f2f6b83f51e676cc30d14038a67cd44..1cd99b0211aa31056dc4df69cb3672138eedf3ae 100644
--- a/package_bgs/dp/ZivkovicAGMM.h
+++ b/package_bgs/dp/ZivkovicAGMM.h
@@ -148,8 +148,8 @@ namespace Algorithms
       //number of Gaussian components per pixel
       unsigned char* m_modes_per_pixel;
     };
-  };
-};
+  }
+}
 
 #endif
 
diff --git a/package_bgs/tb/MRF.h b/package_bgs/tb/MRF.h
index 457bbbc600c81486a7c1c60ffc7c7d664f29065c..c74589958988c2b9f38895650f651d8fdb57bbfe 100644
--- a/package_bgs/tb/MRF.h
+++ b/package_bgs/tb/MRF.h
@@ -101,7 +101,7 @@ namespace Algorithms
       void ICM2();
       void Metropolis2(bool mmd);
     };
-  };
-};
+  }
+}
 
-#endif
\ No newline at end of file
+#endif
diff --git a/package_bgs/tb/T2FGMM.h b/package_bgs/tb/T2FGMM.h
index a698e5a821b454c0e9d8def8aea344037cbf88dd..7d966db3b313fb073e6765c6d0f8531350bdb4c8 100644
--- a/package_bgs/tb/T2FGMM.h
+++ b/package_bgs/tb/T2FGMM.h
@@ -129,7 +129,7 @@ namespace Algorithms
       // Factor control for the T2FGMM-UV
       float kv;
     };
-  };
-};
+  }
+}
 
 #endif
diff --git a/package_bgs/tb/T2FMRF.h b/package_bgs/tb/T2FMRF.h
index e6fb4495638622431c2345a44ce0fd6bc485a595..00e464c310bfbb2f6795f22451b27aa4fe5a92ab 100644
--- a/package_bgs/tb/T2FMRF.h
+++ b/package_bgs/tb/T2FMRF.h
@@ -158,7 +158,7 @@ namespace Algorithms
       // Factor control for the T2FGMM-UV
       float kv;
     };
-  };
-};
+  }
+}
 
 #endif