Fix negative page counter in graph. closes #2208