diff --git a/lib/mattermost/client.rb b/lib/mattermost/client.rb
index 2a0e4b400d3965c44528643ce76692a1f60bd290..8bbb2038772b89011ff897eb6caf709a4ce88075 100644
--- a/lib/mattermost/client.rb
+++ b/lib/mattermost/client.rb
@@ -9,7 +9,7 @@ module Mattermost
     private
 
     def with_session(&blk)
-      Session.new(user).with_session(&blk)
+      Mattermost::Session.new(user).with_session(&blk)
     end
 
     def json_get(path, options = {})