- fix potential crash for expired sessions
- fix potential crash for poorly formatted sort numbers, when the item name sort regex is used, in non-debug