diff --git a/jass/static/selectPhenotypes_for_region.html b/jass/static/selectPhenotypes_for_region.html
index 51b518a53dc7faa172dc2960b775b7561f55ab95..920a78adf4c7e553554a6640a9e00680588410e9 100644
--- a/jass/static/selectPhenotypes_for_region.html
+++ b/jass/static/selectPhenotypes_for_region.html
@@ -265,6 +265,7 @@
 							phe['chromosome'] = selectedChromosome;
 							phe['start'] = region_start;
 							phe['end'] = region_end;
+							phe['to_init'] = 1;
 
 							console.log("!!! "+selectedString);
 							console.log("!!! "+phe['phenotypeID']);
@@ -274,9 +275,8 @@
 							sessionStorage.setItem("end",region_end);
 						
 							$.blockUI({ message: $('#question'), css: { width: '275px' }});
-							avancement(); //Initialisation
-		
-					
+							avancement(); // Initialization
+							
 							var status="-1";
 							var JASS_progress = 0;
 							var Old_progress = 0;
@@ -289,8 +289,7 @@
 									var deltaProgress = JASS_progress - Old_progress;
 									Old_progress = JASS_progress;
 									modif(deltaProgress);
-								
-								
+									
 									if(status =="READY"){
 										$.unblockUI();	
 										console.log( data );
@@ -307,10 +306,24 @@
 									
 										setTimeout(getProjectStatus, 10000);	
 									}
+									else if(status =="ERROR"){
+										$.unblockUI();
+										var idProject = data.id;
+										$.get("/api/projects/" + idProject + "/error_msg", function( data2 ) {
+											var User_Message3 = "An error has occurred: please check your data \n " + data2;
+											alert(User_Message3);
+										});
+									}
+									
 								});
-						
+							
 							};
-							getProjectStatus();
+							
+							$.post( "/api/local_projects", phe).done(function(data1) {
+								phe['to_init'] = 0;
+								getProjectStatus();
+							});
+							
 						
 						}
 						else{