Fixing generation of url inputs