Fix problem when different links are shortened to the same value