Fixed a bug in url_internal check, now faster.
url_internal ran in 200 seconds compared to the previous 350.