fixing an edge case with url scanning/parsing