diff --git a/rules.module b/rules.module
index 313a1b2..43a34ea 100644
--- a/rules.module
+++ b/rules.module
@@ -9,11 +9,18 @@
 require_once dirname(__FILE__) . '/modules/events.inc';
 
 /**
+ * Implements hook_stream_wrappers_alter().
+ */
+function rules_stream_wrappers_alter() {
+  // Enable event invocation once hook_boot() is done an everything's ready to
+  // run.
+  rules_event_invocation_enabled(TRUE);
+}
+
+/**
  * Implements hook_init().
  */
 function rules_init() {
-  // Enable event invocation once hook_init() was invoked for Rules.
-  rules_event_invocation_enabled(TRUE);
   rules_invoke_event('init');
 }
 
