fix update counts