Fix a bug when the unix_socket param is used.