Fixed a bug where the too large counter was incremented incorrectly.