fix port on rebuilt url