diff --git a/index.html b/index.html
index b67070af..90ff4937 100644
--- a/index.html
+++ b/index.html
@@ -161,16 +161,10 @@
const urlParams = new URLSearchParams(window.location.search);
-let maxIP = urlParams.get('max')
+let maxIP = ~~urlParams.get('max')
let testNo = 0;
let validIPs = [];
-if (maxIP === null) {
- maxIP = 20
-} else {
- maxIP = parseInt(maxIP);
-}
-
var ips;
var cidr;
let numberOfWorkingIPs = 0;