Index: /trunk/FACT++/src/InterpreterV8.cc
===================================================================
--- /trunk/FACT++/src/InterpreterV8.cc	(revision 14629)
+++ /trunk/FACT++/src/InterpreterV8.cc	(revision 14630)
@@ -511,4 +511,5 @@
     return handle_scope.Close(Boolean::New(true));
 }
+
 Handle<Value> InterpreterV8::FuncDbQuery(const Arguments &args)
 {
@@ -1272,7 +1273,5 @@
 
     Handle<Value> arg[] = { Number::New(equ.ra/15), Number::New(equ.dec), date };
-    return fTemplateSky->GetFunction()->NewInstance(3, arg);
-
-    //return handle_scope.Close(ConstructSky(equ.ra/15, equ.dec, date));
+    return handle_scope.Close(fTemplateSky->GetFunction()->NewInstance(3, arg));
 }
 
@@ -1307,5 +1306,5 @@
 
     Handle<Value> arg[] = { Number::New(90-hrz.alt), Number::New(hrz.az), date };
-    return fTemplateLocal->GetFunction()->NewInstance(3, arg);
+    return handle_scope.Close(fTemplateLocal->GetFunction()->NewInstance(3, arg));
 }
 
@@ -1339,5 +1338,5 @@
 
     Handle<Value> arg[] = { Number::New(90-hrz.alt), Number::New(hrz.az), date };
-    return fTemplateLocal->GetFunction()->NewInstance(3, arg);
+    return handle_scope.Close(fTemplateLocal->GetFunction()->NewInstance(3, arg));
 }
 
@@ -1384,7 +1383,5 @@
     This->Set(String::New("time"),    date,                    ReadOnly);
 
-    return This;
-
-    //return handle_scope.Close(ConstructSky(equ.ra/15, equ.dec, date, true));
+    return handle_scope.Close(This);
 }
 
@@ -1404,4 +1401,6 @@
 
     // ----------------------------
+
+    HandleScope handle_scope;
 
     Handle<Object> This = args.This();
@@ -1428,5 +1427,5 @@
         This->Set(String::New("time"), args[2], ReadOnly);
 
-    return This;
+    return handle_scope.Close(This);
 }
 
@@ -1447,4 +1446,6 @@
 
     // --------------------
+
+    HandleScope handle_scope;
 
     Handle<Object> This = args.This();
@@ -1471,7 +1472,5 @@
         This->Set(String::New("time"), args[2], ReadOnly);
 
-    return This;
-
-    // ----------------------
+    return handle_scope.Close(This);
 }
 #endif
