lib: fix bin from repeating subdomain names