Fix the Parse error bug when the session is dead