Fixed issue with consumer counter passing producer counter