Fixed broken block counter between sessions