diff --git a/core/error.rb b/core/error.rb
index <HASH>..<HASH> 100644
--- a/core/error.rb
+++ b/core/error.rb
@@ -3,7 +3,9 @@ class Exception < `Error`
 
   def self.new(message = '')
     %x{
-      return new Error(message);
+      var err = new Error(message);
+      err._klass = #{self};
+      return err;
     }
   end
Ensure instances of Exception get the right klass set on them