Fix user session helper.