fixes #5790; remove duplicate count