diff --git a/CHANGELOG.md b/CHANGELOG.md
index 33617dd163b50fd114874a1935d997dd46d50de2..c69a6fb809145d2511b24fff4506803eba9e1249 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](http://keepachangelog.com/)
 and this project adheres to [Semantic Versioning](http://semver.org/).
 
+## Unreleased
+### Changed
+- Fix bug in diagnosis and projection routes
+
 ## 1.4.2 - 2018-07-23
 ### Added
 - Added new url's in daily charge amount indicator
diff --git a/src/libs/routes/enrollment.js b/src/libs/routes/enrollment.js
index 656df2a03f7184c53907bd8a2c47dd33806f6bda..be8a722dc9e9ea3877367b6fba2a89ddf8e15e38 100644
--- a/src/libs/routes/enrollment.js
+++ b/src/libs/routes/enrollment.js
@@ -549,6 +549,10 @@ enrollmentApp.get('/diagnosis', rqf.parse(), (req, res, next) => {
     let i = 0;
     while(i < enrollments.length) {
         let enrollment = enrollments[i];
+        if(!educationSchoolYear[enrollment.school_year_id]) {
+            ++i;
+            continue;
+        }
         let educationLevelHash = '' + enrollment.year + educationSchoolYear[enrollment.school_year_id].id;
         let schoolYearHash = '' + enrollment.year + enrollment.school_year_id;
 
@@ -748,12 +752,18 @@ enrollmentApp.get('/projection', rqf.parse(), (req, res, next) => {
         }
     }
 
+    console.log(educationSchoolYear);
+
     let result = [];
     let educationLevelSet = new Set();
     let schoolYearSet = new Set();
     let i = 0;
     while(i < enrollments.length) {
         let enrollment = enrollments[i];
+        if(!educationSchoolYear[enrollment.school_year_id]) {
+            ++i;
+            continue;
+        }
         let educationLevelHash = '' + enrollment.year + educationSchoolYear[enrollment.school_year_id].id;
         let schoolYearHash = '' + enrollment.year + enrollment.school_year_id;