fix session being fetched properly