Fix error when adding a new short URL