Fix custom master server ports