diff --git a/lib/sorcery/controller.rb b/lib/sorcery/controller.rb
index <HASH>..<HASH> 100644
--- a/lib/sorcery/controller.rb
+++ b/lib/sorcery/controller.rb
@@ -48,8 +48,8 @@ module Sorcery
         if logged_in?
           before_logout!(current_user)
           reset_session
-          @current_user = nil
           after_logout!
+          @current_user = nil
         end
       end
after_login! requires @current_user is not nil. I changed the order of those two lines in the logout method.