bugfix to counts being incorrectly displayed