fixed bug not allowing sessions to be reused