bugfix for the URL detection