Session flipped mode bugs fixed.