Fix intermitent session map bug