Fix generatorUrl in controller