fix generate *_url helpers