fix a mistake in read_cb