Fix mistake in errno/ add upgrade