Fix null -> localhost