session management bugs are fixed