fixed misused Session.new() calls caused by changing the method in previous commit