repair broken ports