Fix metadata

* fix metadata community bug
* support changing swift port in SettingsDialog