fixes a bug in top IPs