Buida llista de classes en canviar hora
diff --git a/js/build_page.js b/js/build_page.js
index 83f49a6..a43cd5f 100644
--- a/js/build_page.js
+++ b/js/build_page.js
@@ -112,6 +112,7 @@
 }
 
 function buildSubjectContainer(classes, repeated) {
+    document.getElementById("subject-container").innerHTML = "";
     for (var classe of classes) {
         var hora_inici = formatTime(new Date(parseInt(classe.begins)*1000));
         var hora_final = formatTime(new Date(parseInt(classe.ends)*1000));