Fix bug for UrlEnhancer.js