fix argument order passing to url generator.