Fix mistake in logging