Fix the error when call hook_url.