Fix bad session reference.