[UI] Fix a bug in the hostname display in the title areas