Fix port number not set