Fixed a mistake in BlockInfo reading/writing