Fix minor mistake in conditional printing