Fixed the issue in the ui_url method