Fix session counter