Session Layer: Bug fixes