fix missing coma, set port and host to nil when path is present