Session Layer: fixed pointer bug