fixed bug in url RegExp