- fix concurrent access and miscount