Fix bug in URL generator.