fix for unix atomic counter