Fix bug in SessionsHelper