Open session bug fix.