Fixed the wtrm function checkUrl