Fixed handling for default host and port values