debug the session bug