Fixed multiple sessions bug.