diff --git a/frontend-js/src/main/js/map/data/MapModel.js b/frontend-js/src/main/js/map/data/MapModel.js
index c90a050964965e836fc4c1226059d77e60427886..2790e5a58b71e2867656a59bfab701dcb09c24cd 100644
--- a/frontend-js/src/main/js/map/data/MapModel.js
+++ b/frontend-js/src/main/js/map/data/MapModel.js
@@ -357,7 +357,7 @@ MapModel.prototype.getId = function() {
 };
 
 MapModel.prototype.setId = function(id) {
-  this.id = id;
+  this.id = parseInt(id);
 };
 
 MapModel.prototype.getWidth = function() {