bugfixes due to merge

The previous one failed for `http://localhost`