Fix bincounting