fix localhost URLs