diff --git a/js/app/views/CatalogUI.js b/js/app/views/CatalogUI.js
index e1641c4..0a3cf7e 100644
--- a/js/app/views/CatalogUI.js
+++ b/js/app/views/CatalogUI.js
@@ -151,6 +151,8 @@ Ext.define('amdaUI.CatalogUI', {
     updateSurveyDates : function(ttObj){
         var starts = [];
         var stops= [];
+        if (this.TTGrid.getStore().getTotalCount() <= 0)
+            return;
           Ext.Array.each(this.TTGrid.getStore().data.first.value, function (item, index) {
              starts[index] = (item.raw.start);
              stops[index] = (item.raw.stop);
@@ -162,11 +164,11 @@ Ext.define('amdaUI.CatalogUI', {
          s = new Date(starts[0]);
          e = new Date(stops[stops.length - 1]);
          if(! ttObj.get('surveyStart') ){
-         	ttObj.set('surveyStart',  this.convertUTCDateToLocalDate(s));
+         	ttObj.set('surveyStart',  s);
                     this.status.isModified = true;
          }
          if(! ttObj.get('surveyStop') ){
-                   ttObj.set('surveyStop',  this.convertUTCDateToLocalDate(e));
+                   ttObj.set('surveyStop',  e);
                    this.status.isModified = true;
          }
     }
diff --git a/js/app/views/DownloadUI.js b/js/app/views/DownloadUI.js
index 74c7bd0..9c602e6 100644
--- a/js/app/views/DownloadUI.js
+++ b/js/app/views/DownloadUI.js
@@ -289,7 +289,7 @@ Ext.define('amdaUI.DownloadUI', {
         //TT download
         else
         {
-            var timeformat = values.timeformatTT ? alues.timeformatTT :amdaModel.DownloadConfig.defaultValues.timeformatTT;
+            var timeformat = values.timeformatTT ? values.timeformatTT :amdaModel.DownloadConfig.defaultValues.timeformatTT;
             var compression = values.compressionTT;
             var fileformat = values.fileformatTT;
             if (this.TTGrid.getStore().count() == 0) {
--
libgit2 0.21.2