fixed bug when sessionID is missing