diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js
index 8424ab143..6d30b92e1 100644
--- a/web/javascript/transmission.js
+++ b/web/javascript/transmission.js
@@ -1335,8 +1335,8 @@ Transmission.prototype =
var parity = ((i+1) % 2 == 0 ? 'even' : 'odd');
html += '
';
html += '' + (peer.isEncrypted ? '' : '') + ' | ';
- html += '' + Transmission.fmt.speed(peer.rateToPeer) + ' | ';
- html += '' + Transmission.fmt.speed(peer.rateToClient) + ' | ';
+ html += '' + ( peer.rateToPeer ? Transmission.fmt.speed(peer.rateToPeer) : '' ) + ' | ';
+ html += '' + ( peer.rateToClient ? Transmission.fmt.speed(peer.rateToClient) : '' ) + ' | ';
html += '' + Math.floor(peer.progress*100) + '%' + ' | ';
html += '' + peer.flagStr + ' | ';
html += '' + peer.address + ' | ';