Corrected minor bug in session ID processing