Fixed bug in form_url method