Fixed another bug related to printing output