Bugfix. dir(session) -> infinite recursion