fixed a small error in the _dictionary when using sessions