Fix bug in url engine