Fixed some discrepancies in the output