diff --git a/domainfind b/domainfind
index f422e86..2425a5e 100755
--- a/domainfind
+++ b/domainfind
@@ -87,7 +87,7 @@ checkavaildomains() {
 		! [[ $word == *$tldstrip ]] && continue
 		[[ $word == $tldstrip ]] && continue # Ignore the tld itself
 		log "Processing word: $word" 2
-		prefix="${word%$tld}"
+		prefix="${word%$tldstrip}"
 		fqdn="$prefix.$tld"
 		log "Looking for domain: $fqdn" 2
 		# We wait here so a ^C kills our program, not nslookup