Fix invalid session ID bug

Filling this out...