Fix reply count logic