session count fix